﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.Entity;


namespace SERVICES.Services
{
    public static class ProductDetailServices
    {
        public static List<PRODUCT> getHotProductList(int amount)
        {
            using (var db = new WMILKEntities2())
            {
                var ListProduct = db.PRODUCTS.Include(x => x.PRODUCT_DETAILS).Include(x=>x.CATALOG).Take(amount).ToList();
                return ListProduct;
            }
        }
    }
}
